import request from '@/utils/request'

// 查询招聘申请列表
export function listHumanRecruit(query) {
  return request({
    url: '/oa/humanRecruit/list',
    method: 'get',
    params: query
  })
}

// 查询招聘申请详细
export function getHumanRecruit(id) {
  return request({
    url: '/oa/humanRecruit/' + id,
    method: 'get'
  })
}

// 新增招聘申请
export function addHumanRecruit(data) {
  return request({
    url: '/oa/humanRecruit',
    method: 'post',
    data: data
  })
}

// 修改招聘申请
export function updateHumanRecruit(data) {
  return request({
    url: '/oa/humanRecruit',
    method: 'put',
    data: data
  })
}

// 删除招聘申请
export function delHumanRecruit(id) {
  return request({
    url: '/oa/humanRecruit/' + id,
    method: 'delete'
  })
}
